#!/usr/bin/env	python

import sys
import os
import datetime
import shutil
import dateutil.tz

if len(sys.argv) != 8:
	sys.exit();

srm = str('SRM') + sys.argv[1]
num1 = sys.argv[2]
num2 = sys.argv[3]
num3 = sys.argv[4]
num4 = sys.argv[5]
num5 = sys.argv[6]
num6 = sys.argv[7]

os.mkdir(srm, 0777);
os.chdir(os.getcwd() + str('/') + srm);

tz = datetime.datetime.now(dateutil.tz.tzlocal())
now = tz.strftime("%A, %B %d, %Y %H:%M %Z")

for i in [num1, num2, num3]:
	string = srm + str('_DIV1_') + str(i) + str('.java');
	dst = open(string, 'w');
	dst.write("//" + now + "\n" );
	dst.close();

for i in [num4, num5, num6]:
	string = srm + str('_DIV2_') + str(i) + str('.java');
	dst = open(string, 'w');
	dst.write("//" + now + "\n" );
	dst.close();

